home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
d
/
devioustools25.dms
/
devioustools25.adf
/
utils
/
003.lzx
/
AMountains
/
random.c
< prev
next >
Wrap
C/C++ Source or Header
|
2004-02-13
|
199b
|
14 lines
#include <m68881.h>
#include <math.h>
double gaussian( void )
{
double ran;
do {
ran = drand48();
} while ( ran == 0.0 );
return sqrt( -2.0 * log( ran ) ) * cos( (2.0 * PI) * drand48() );
}